<template>
  <div>
    <van-row
      style="text-align: center; vertical-align: center; font-weight: bolder; font-size: 13px"
      align="center" type="flex" justify="space-between"
    >
      <van-col span="6">时间</van-col>
      <van-col span="6">提现到</van-col>
      <van-col span="6">金额(￥)</van-col>
      <van-col span="6">状态</van-col>
    </van-row>
    <van-row type="flex" style="text-align:center" align="center" justify="space-between" v-for="item in recordArr" :key="item.id">
      <van-col span="6">{{item.createdate}}</van-col>
      <van-col span="6">{{ cashToWay[(item.acctype)] }}</van-col>
      <!-- 提现金额    -->
      <van-col span="6">
        {{ '&minus;' +'&nbsp;'+ (item.money / 1000).toFixed(2)}}
      </van-col>
      <van-col span="6">{{item.ispay === 0 ? '提现中' : '已提现'}}</van-col>
    </van-row>
  </div>
</template>

<script>
  import cashToWay from '../constants/cashToWay'
  export default {
    name: 'comWithdrawalRecords',
    props: {
      recordArr: Array,
    },
    data(){
      return {
        cashToWay,
      }
    }

  }
</script>

<style scoped>

</style>
